<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>表单设计</title>
  <link type="text/css" rel="stylesheet" href="bootstrap/css/bootstrap.min.css"/>
  <link type="text/css" rel="stylesheet" href="css/site.css"/>
  <style>
   *{margin:0;padding:0;}
   body{font-family:"微软雅黑";font-size:14px;position:relative;}
   ul,li{list-style:none;}
   a{text-decoration:none;}
   #seal{width:800px;min-height:300px;margin:20px auto;}
   #seal h3{font-size:14px;}
   #seal .seal_box{width:100%;min-height:200px;border:1px solid #ddd;text-align:center; }
   #seal .seal_box p{overflow:auto;}
   #seal .seal_box p a{width:75px;text-decoration:none;line-height:30px;background:red;text-align:center;color:#fff;}
   #seal .seal_box p a:first-child{float:left;margin:15px 0 0 15px;}
   #seal .seal_box p a:last-child{float:right;margin:15px 15px 0 0;background:#333;}
   #seal  p a:hover{cursor:pointer;}
  #seal .seal_box .seal_list{text-align:center;margin-top:20px;}
  #seal .seal_box .seal_list tr{width:80px;height:35px;border:1px solid #ddd;}
  #seal .seal_box .seal_list tr td{width:80px;}
  </style>   
 </head>
 <body>
  <div id="seal">
     <h3>*选择印章</h3>
     <div class="seal_box">
       <p><a id="add_seal_box">添加</a><a id="delete_seal">删除</a></p>
        <table class="seal_list" id="seal_list_add_box" border="1" width="95%">
           <tr>
              <td><input id="check_all_seal" type="checkbox" /></td>
              <td>印章名称</td>
              <td>印章保管人</td>
              <td>印章保管部门</td>
              <td>印章份数</td>
           </tr>
            <tr>
              <td><input  type="checkbox" /></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
           </tr>
           </table>
        </div>
     </div>
  </div>
 
<script type="text/javascript" charset="utf-8" src="js/jquery-1.11.2.min.js?2028"></script>
<script type="text/javascript">
var seal_obj = new Array();//全局数组对象
 $(function(){
	 
	/*    $('.seal_list tr').eq(1).children('td').eq(1).click(function () {                
            alert(123);
	    	// alert( $('table tr:first').children('td').eq(1).html());
            //alert( $('table tr').eq(1).children('td').eq(0).html());          
});*/
	    
	    $('.seal_list tr').eq(1).click(function () {                
            
	    	 alert( $('table tr:first').children('td').eq(1).html());
            //alert( $('table tr').eq(1).children('td').eq(0).html());          
});
	    
	 //初始化方法 设置列表字段 
	 list_data();
	 
    $("#add_seal_box").click(function(){
      var tr=" <tr><td><input  type='checkbox' /></td><td></td><td></td><td></td><td></td></tr>";
    	//alert(tr);
    	$(".seal_list").append(tr);
    });
});

function list_data(){
	//alert(121);
}
 
</script>
</body>
</html>

